package com.sff.events {
	
	import flash.events.Event;
	import com.sff.core.ILoadable;	
	
	public class LoaderEvent extends Event {		
		public static const ITEM_START 			: String = "itemStart";
		public static const ITEM_COMPLETE 		: String = "itemComplete";
		
		public static const ADDED 				: String = "addedTo";
		public static const ADDED_TO_GROUP 		: String = "addedToGroup";
		
		public static const REMOVED 			: String = "removedFrom";	
		public static const REMOVED_FROM_GROUP 	: String = "removedFromGroup";	

		public static const DISPOSED 			: String = "disposed";
		
		private var _item : ILoadable;
		
		public function LoaderEvent (type : String, item : ILoadable) {
			super(type);
			_item = item;
		}
		
		public function get item () : ILoadable {
			return _item;	
		}		
		
		override public function clone () : Event {
			return new LoaderEvent( type, _item );
		}			}}